home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / files / read < prev    next >
Encoding:
Text File  |  1993-10-26  |  863 b   |  22 lines  |  [TEXT/$Tcl]

  1.  
  2.           read ?-nonewline? fileId
  3.           read fileId numBytes
  4.  
  5.  
  6.      DESCRIPTION
  7.           In the first form, all of the remaining bytes are read  from
  8.           the file given by fileId; they are returned as the result of
  9.           the command.  If the -nonewline switch is specified then the
  10.           last  character of the file is discarded if it is a newline.
  11.           In the second form, the extra argument  specifies  how  many
  12.           bytes  to  read;  exactly  this  many bytes will be read and
  13.           returned, unless there are fewer than numBytes bytes left in
  14.           the  file;  in  this  case,  all  the  remaining  bytes  are
  15.           returned.  FileId must be stdin or the return value  from  a
  16.           previous  call  to  open;  it  must refer to a file that was
  17.           opened for reading.
  18.  
  19.  
  20.      KEYWORDS
  21.           file, read
  22.